﻿using UnityEngine;
using System.Collections;

public class TestDestroy : MonoBehaviour
{
	public UIPlayTween uiPlayTween;

	void Start ()
	{
		uiPlayTween.OnFinished.AddListener(A);
		uiPlayTween.OnFinished.AddListener(B);
		uiPlayTween.Play(true);
	}
	
	void A()
	{
		Destroy(this.gameObject);
		Debug.Log("A");
	}

	void B()
	{
		Debug.Log("B");
	}
}
